package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapeIotMapper;
import com.ruoyi.grape.domain.GrapeIot;
import com.ruoyi.grape.service.IGrapeIotService;

/**
 * 物联网监测数据Service业务层处理
 * 
 * @author ld
 * @date 2023-11-18
 */
@Service
public class GrapeIotServiceImpl implements IGrapeIotService 
{
    @Autowired
    private GrapeIotMapper grapeIotMapper;

    /**
     * 查询物联网监测数据
     * 
     * @param meteId 物联网监测数据主键
     * @return 物联网监测数据
     */
    @Override
    public GrapeIot selectGrapeIotByMeteId(Long meteId)
    {
        return grapeIotMapper.selectGrapeIotByMeteId(meteId);
    }

    /**
     * 查询物联网监测数据列表
     * 
     * @param grapeIot 物联网监测数据
     * @return 物联网监测数据
     */
    @Override
    public List<GrapeIot> selectGrapeIotList(GrapeIot grapeIot)
    {
        return grapeIotMapper.selectGrapeIotList(grapeIot);
    }

    /**
     * 新增物联网监测数据
     * 
     * @param grapeIot 物联网监测数据
     * @return 结果
     */
    @Override
    public int insertGrapeIot(GrapeIot grapeIot)
    {
        return grapeIotMapper.insertGrapeIot(grapeIot);
    }

    /**
     * 修改物联网监测数据
     * 
     * @param grapeIot 物联网监测数据
     * @return 结果
     */
    @Override
    public int updateGrapeIot(GrapeIot grapeIot)
    {
        return grapeIotMapper.updateGrapeIot(grapeIot);
    }

    /**
     * 批量删除物联网监测数据
     * 
     * @param meteIds 需要删除的物联网监测数据主键
     * @return 结果
     */
    @Override
    public int deleteGrapeIotByMeteIds(Long[] meteIds)
    {
        return grapeIotMapper.deleteGrapeIotByMeteIds(meteIds);
    }

    /**
     * 删除物联网监测数据信息
     * 
     * @param meteId 物联网监测数据主键
     * @return 结果
     */
    @Override
    public int deleteGrapeIotByMeteId(Long meteId)
    {
        return grapeIotMapper.deleteGrapeIotByMeteId(meteId);
    }
}
